package io.gitee.zicai.bus.adaptor;

import io.gitee.zicai.bus.bus.IReceiveBus;
import io.gitee.zicai.bus.core.IBusReceiver;

/**
 * IBusSendAdaptor
 *
 * @author zicai
 * @since 2021-01-18
 */
public interface IBusReceiveAdaptor<R extends IBusReceiver, RB extends IReceiveBus<R, RT>, RT> extends IBusAdaptor<R, RB, RT> {

    /**
     * 厂商的服务
     *
     * @param brandName 厂商名称
     * @return IBusReceiver
     */
    @Override
    default R getCmdService(String brandName) {
        return getCmdReceiver(brandName);
    }

    /**
     * 厂商的指令接收服务
     *
     * @param brandName 厂商名称
     * @return IBusReceiver
     */
    R getCmdReceiver(String brandName);
}
